package org.zcl.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.zcl.api.ApiResponse;
import org.zcl.service.BaseService;

/**
 * .
 *
 * @author zhuchenglin
 * @since 2024/4/22 16:09
 */
@RestController
@RequestMapping("/base/")
public class BaseController {

    @Autowired
    private BaseService baseService;

    @GetMapping("incr")
    public ApiResponse<Long> incr(@RequestParam Integer times) {
        Long count = baseService.incr(times);
        return new ApiResponse<Long>().returnSuccess(count);
    }
}
